package com.stylefeng.guns.rest.modular.App.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("order_customer_code")
@EqualsAndHashCode(callSuper=true)
 /**
 * 乘客评分
 *
 * @author sasazaixian
 * @Date 2018-12-25 10:45
 * @TableField(exist = false) 实现属性与数据库字段不一一对应
 */
public class OrderCustomerCode extends Model<OrderCustomerCode> {
    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     * 自动生成后修改成实际的主键 
     */

    @ApiModelProperty(value = "主键")
    @TableId(value = "oi_id", type = IdType.UUID)
    private String oiId;     //主键
    @Override
    protected Serializable pkVal() {
        return this.oiId;
    }
    
    //扩展能查询字段
    @TableField(exist = false) 
    private String key ;
    //开始日期
    @TableField(exist = false)     
    private String sdate;
    //截止日期 
    @TableField(exist = false) 
	private String edate;
    //排序字段
    @TableField(exist = false) 
	private String  sortField ;
	//排序	
	@TableField(exist = false) 
	private String sortOrder;

    @ApiModelProperty(value = "")
    @TableField("occ_code")
    private Integer occCode;     //
    @ApiModelProperty(value = "")
    @TableField("occ_content")
    private String occContent;     //
    @ApiModelProperty(value = "")
    @TableField("create_time")
    private Date createTime;     //
}
